package remoting.exchange;


import common.exception.RemotingException;
import common.factory.Factory;
import common.model.MagicUrl;

public interface Exchanger {

  ExchangeServer bind(MagicUrl url, ExchangeHandler handler)
      throws RemotingException;

  ExchangeClient connect(MagicUrl url, ExchangeHandler handler)
      throws RemotingException;
}
